{
MACc=$(ipmitool lan print 2>/dev/null | awk '/IP Address +:/{split($NF, ip, "."); srand(); printf "66:%d:%d:%d:%d:%02d\n", ip[2], ip[3], int(10+rand()*90), int(10+rand()*90), int(10+rand()*90)}')
nmcli connection modify "eth0" 802-3-ethernet.cloned-mac-address $MACc
systemctl restart NetworkManager && nmcli connection down "eth0" && nmcli connection up "eth0"
ip a
echo -e "修改MAC为:\t\e[31m$MACc\e[0m"
}
